package routes

import (
	"github.com/kataras/iris/v12/mvc"
	"punch-in/repositories"
	"punch-in/services"
	"punch-in/web/controllers"
)

func IndexRoute(app *mvc.Application) {
	repo := repositories.NewPunchRepository(db)
	punchService := services.NewPunchService(repo)
	app.Register(punchService)
	app.Handle(new(controllers.IndexController))
}
